package com.ruoyi.business.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 锻炼对象 exercise
 *
 * @author 吴倩芸
 * @date 2023-03-09
 */
@Data
@TableName("exercise")
public class Exercise extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 计划id
     */
    @Excel(name = "计划id")
    @TableField(value = "plainId")
    private Long plainId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField(value = "userId")
    private Long userId;

    /**
     * 签到时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "签到时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @TableField(value = "startTime")
    private Date startTime;

    /**
     * 签退时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "签退时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @TableField(value = "endTime")
    private Date endTime;

    /**
     * 星期几
     */
    @Excel(name = "星期几")
    @TableField(value = "weekday")
    private String weekday;


}
